package edu.nju.desserthouse.dao;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;

import javax.ejb.Remote;

import nju.edu.desserthouse.model.Vip;

@Remote
public interface VipDao extends Serializable{
	
	public boolean save(Vip vip);
	
	public Vip find(String column, String value);
	
	public Vip find(String col1, String val1, String col2, String val2);
	
	public boolean updateByVipId(Vip vip);
	
	public boolean delete(String col1, String val1, String col2, String val2);
	
	public boolean payfee(String vip_id);
	
	public boolean charge(String vip_id, int fee);
	
	public boolean activate(String vip_id);
	
	public boolean buy(String vip_id, double price);

	public ArrayList<Vip> getVipList();

	ArrayList<String> getAddressList();

	ArrayList<Vip> getVipList(Date date);
}
